package com.hzw.saas.web.shell.service;

import com.hzw.saas.web.shell.service.query.HpcAccountQuery;

import java.io.IOException;

/**
 * <p>
 *
 * </p>
 *
 * @author sonam
 * @since 2021/6/3 10:06
 */
public interface IWebShellService {

    /**
     * 连接SSH
     * @param hpcAccountQuery
     */
    void connection(HpcAccountQuery hpcAccountQuery);

    /**
     * 发送命令到SSH
     * @param sessionId
     * @param command
     * @throws IOException
     */
    void transToSSH(String sessionId, String command) throws IOException;

    /**
     * 断开连接
     * @param sessionId
     */
    void closeConnection(String sessionId);

}
